package mt.client;

import static org.junit.Assert.*;

import java.util.LinkedList;

import mt.Order;

import org.junit.Test;

public class TestSuit {
/////////////////-Order-///////////////////////
	private Order order;
	private Order order2;
	Order order3 = order.createBuyOrder(null, null, 0, 0);
	Order order4 = order.createSellOrder(null, null, 0, 0);
	int i = order4.getNumberOfUnits();
	String j = order3.getNickname();
	String l = order4.getStock();
	double h = order3.getPricePerUnit();
	boolean e = order4.isBuyOrder();
	boolean w = order3.isSellOrder();
	int o = order3.getServerOrderID();
	String x = order3.toString();
	
/////////////////-ConfiguracaoTabelaHistorico-///////////////////////
	
	@Test
	public void add(){
		ConfigTabelaHist b = new ConfigTabelaHist();
		b.add(order);
	}
	
	
	@Test
	public void delete(){
		ConfigTabelaHist b = new ConfigTabelaHist();
		b.add(order);
		b.delete(order);
	}
	
	@Test
	public void getOrder(){
		ConfigTabelaHist a = new ConfigTabelaHist();
		int row =0;
		a.add(order);
		a.getOrder(row);
	}
	@Test
	public void getRowCount(){
		ConfigTabelaHist b = new ConfigTabelaHist();
		b.getRowCount();
	}
	
	@Test
	public void getColumnCount(){
		ConfigTabelaHist b = new ConfigTabelaHist();
		b.getColumnCount();
	}
	
	@Test
	public void getColumnName(){
		ConfigTabelaHist b = new ConfigTabelaHist();
		b.getColumnName(0);
		b.getColumnName(1);
		b.getColumnName(2);
		b.getColumnName(3);
	}
	
	@Test
	public void getColumnName1(){
		ConfigTabelaHist b = new ConfigTabelaHist();
		b.getColumnName(0);
		b.getColumnName(1);
		b.getColumnName(2);
		b.getColumnName(3);
		b.getColumnName(5);
	}
	
	@Test
	public void getValueAt(){
		ConfigTabelaHist a = new ConfigTabelaHist();
		a.add(order);
		a.getValueAt(a.getRowCount(), a.getColumnCount());
	
	}
	
	
	/////////////////-Configura��oTabela-///////////////////////
	
	@Test
	public void addConfiguracaoTabela(){
		ConfiguracaoTabela a = new ConfiguracaoTabela();
		a.add(order);
	}
	
	
	@Test
	public void deleteConfiguracaoTabela(){
		ConfiguracaoTabela a = new ConfiguracaoTabela();
		a.delete(order);
	}
	
	@Test
	public void getOrderConfiguracaoTabela(){
		ConfiguracaoTabela a = new ConfiguracaoTabela();
		int row =0;
		a.add(order);
		a.getOrder(row);
	}
	
	@Test
	public void getRowCountConfiguracaoTabela(){
		ConfiguracaoTabela a = new ConfiguracaoTabela();
		a.getRowCount();
	}
	
	@Test
	public void getColumnCountConfiguracaoTabela(){
		ConfiguracaoTabela a = new ConfiguracaoTabela();
		a.getColumnCount();
	}
	
	@Test
	public void getColumnNameConfiguracaoTabela(){
		ConfiguracaoTabela a = new ConfiguracaoTabela();
		a.getColumnName(0);
		a.getColumnName(1);
		a.getColumnName(2);
		a.getColumnName(3);
	}
	
	@Test
	public void getColumnName1ConfiguracaoTabela(){
		ConfiguracaoTabela a = new ConfiguracaoTabela();
		a.getColumnName(0);
		a.getColumnName(1);
		a.getColumnName(2);
		a.getColumnName(3);
		a.getColumnName(5);
	}

	@Test
	public void getValueAtConfiguracaoTabela(){
		ConfiguracaoTabela a = new ConfiguracaoTabela();
		a.add(order);
		a.getValueAt(a.getRowCount(), a.getColumnCount());
		
	
	}
	
	@Test
	public void getValueAtConfiguracaoTabela1(){
	}
	
}
